package com.jfok.server.login;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfok.server.common.LoginResult;


public interface ILoginLogic {

	
	// public List<Module> getModulesWithEmployeeIdAndSavetoSession(Integer
	// tf_employeeId, HttpServletRequest request);

	
	// public Employee getUserFromLoginname(String loginname);

	
	// public boolean isUserLoginValid(String loginname, String password);

	
	public Boolean isNeedUserLogin(HttpServletRequest request);

	
	public Boolean isLogin(HttpServletRequest request);

	
	public Boolean isNeedIdentifyingCode(HttpServletRequest request);

	
	public LoginResult login(LoginType loginType, String loginName, String password,
			String identifyingCode, HttpServletRequest request);

	
//	public Boolean externalLogin(HttpServletRequest request);

	
//	private Boolean allowTwoWeeksAutoLogin(HttpServletRequest request);

	
	public void userLogout(HttpServletRequest request, HttpServletResponse response);

}
